﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoPro.Local
{
    public interface ILocalProvider
    {
        /// <summary>
        /// This returns the default local that has to be tried first. If nothing is found, <code>GetNextLocal</code> provides other local to try.
        /// </summary>
        /// <returns></returns>
        IContentLocal GetLocal();

        /// <summary>
        /// This returns the next local that should be tried if the first local did not contain an result.
        /// </summary>
        /// <param name="_currentLocal">The current local that was not feasible.</param>
        /// <returns>Next local to try, if there are no more locals to try, null is returned.</returns>
        IContentLocal GetNextLocal(IContentLocal _currentLocal);
    }
}
